package com.fowo.api.flow.model.vo;

import com.alibaba.fastjson.JSONObject;
import com.fowo.api.flow.entity.ProcessTemplates;
import com.fowo.api.flow.model.ChildNode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @fileName: HandleDataVO
 * @Description: 代码目的，作用，如何工作
 * @Author: pzh
 * @Date: 2023/4/10 0010 9:53
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class HandleDataVO {
    @Schema(title="任务id")
    private String taskId;
    @Schema(title="流程实例id")
    private String processInstanceId;
    @Schema(title="表单数据")
    private JSONObject formData;
    @Schema(title="前端是否打开 签名板")
    private Boolean signFlag;
    @Schema(title="流程模板")
    private ProcessTemplates processTemplates;
    @Schema(title="当前节点json数据 如果有taskId的话才返回")
    private ChildNode currentNode;
    @Schema(title="任务详情")
    private Map<String, List<TaskDetailVO>> detailVOList;
    @Schema(title="已经结束的节点")
    List<String> endList;
    @Schema(title="正在运行的节点")
    List<String> runningList;
    @Schema(title="还没运行的节点")
    List<String> noTakeList;
    @Schema(title="审批状态")
    private String businessStatus;

    @Schema(title="审批节点信息")
    private List<TaskDetailVO> nodeList;

}
